<g:if test="${!session.user}">
     <% response.sendRedirect("code/create"); %>
</g:if>

<html>
    <head>
        <title>Welcome to coPas</title>
		<meta name="layout" content="main" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><a class="list" href="${createLinkTo(dir:'code/list')}">Code List</a></span>
            <span class="menuButton"><a class="list" href="${createLinkTo(dir:'user/list')}">User List</a></span>
        </div>
        <div class="body">
             <h1 style="margin-left:20px;">Welcome to coPas</h1>
             <p style="margin-left:20px;width:80%">
             </p>
        </div>
    </body>
</html>
